package top.lingkang.privatespace.config;

import org.springframework.context.annotation.Configuration;
import top.lingkang.annotation.EnableFinalSecurity;
import top.lingkang.base.FinalHttpProperties;
import top.lingkang.config.FinalSecurityConfiguration;
import top.lingkang.privatespace.config.impl.FinalExceptionHandler;

/**
 * @author lingkang
 * Created by 2022/2/15
 */
@EnableFinalSecurity // 开启 FinalSecurity
@Configuration
public class FinalSecurityConfig extends FinalSecurityConfiguration {
    @Override
    protected void config(FinalHttpProperties properties) {
        properties.setExcludePath(new String[]{"/login", "/logout","/res/**"});

        properties.setExceptionHandler(new FinalExceptionHandler());
    }
}
